package top.cardone.validator;

import com.google.common.collect.Table;

import java.util.Map;

/**
 * Created by Administrator on 2016/9/19.
 */
public interface Validator {
	Map<String, String> validate(String validatorFile, Map<String, Object> map, boolean cacheValidatorTable);

	Map<String, String> validate(String validatorFile, Map<String, Object> map);

	Map<String, String> validate(Table<String, String, Map<String, Object>> validatorTable, Map<String, Object> map);

	Map<String, String> validate(Map<String, Map<String, Object>> validatorTable, Map<String, Object> map);

	Map<String, String> validate(Map<String, Object> rules, Map<String, Object> messages, Map<String, Object> map);
}